package com.zhiyou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.CourseMapper;
import com.zhiyou.model.FyCourse;
import com.zhiyou.service.CourseService;

@Service
public class CourseServiceImpl implements CourseService {

	@Autowired
	CourseMapper courseMapper;

	@Override
	public void add(FyCourse fyCourse) {
		courseMapper.add(fyCourse);
	}

	@Override
	public void update(FyCourse fyCourse) {
		courseMapper.update(fyCourse);
	}

	@Override
	public void delete(int id) {
		courseMapper.delete(id);
	}

	@Override
	public FyCourse selectById(int id) {
		return courseMapper.selectById(id);
	}

	@Override
	public List<FyCourse> selectAll() {
		return courseMapper.selectAll();
	}

	@Override
	public void deleteAll(int[] ids) {
		// TODO Auto-generated method stub
		courseMapper.deleteAll(ids);
	}
}
